<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function f() {
        var info = window.localStorage.getItem('obj');
        console.log(info);
        var o = JSON.parse(info);
        alert(o);
        console.log(o.);

    }
</script>
<script>
    window.onload = f();
</script>
</body>
</html>